import { FieldType } from "choerodon-ui/pro/lib/data-set/enum";

const jsText = `function getOptions() {
  var options = {
    "compilerOptions": {
      "strictNullChecks": true,
      "moduleResolution": "node",
      "allowSyntheticDefaultImports": true,
      "experimentalDecorators": true,
      "jsx": "preserve",
      "noUnusedParameters": true,
      "noUnusedLocals": true,
      "declaration": true,
      "target": "es6",
      "lib": [
        "dom",
        "dom.iterable",
        "es7",
        "es2017.object"
      ]
    },
    "exclude": [
      "node_modules",
      "lib",
      "es"
    ]
  };

  return options;
}
`;
const codeAreaDS = () => {
  return ({
    autoCreate: true,
    fields: [{ name: 'content', type: FieldType.string, defaultValue: jsText, required: true }],
  });
};

export default codeAreaDS;